
/* 统一比较排序方式 */
export function compare(property) {
  if (property === 'je' || property === 'ml') {
    return function (a, b) {
      var value1 = a[property]
      var value2 = b[property]
      return value2 - value1
    }
  } else if(property === 'rq') {
    return function(a,b) {
      return a.rq < b.rq ? 1 : -1
    }
  } else {
    return function (a, b) {
      var value1 = a[property]
      var value2 = b[property]
      return value1 - value2
    }
  }
}
